Hi everyone, what i wonder in a case like the following, is there a way in DXL to realize it? |
Re: Columns in DXL |
Re: Columns in DXL
Not sure what you are asking. Perhaps its 'If there is a selected column then I want to deal with adjacent columns".
Module mCurr = current
Column cCurr = getSelectedCol(g_mCurr),
cPrev, cNext
if (null cCurr)
{ warningBox("Select a Column")
halt
}
int NumCols = 0,
ColNum = 0
for col in mCurr do
{ NumCols++ // CountColumns
}
int ColNum = 0
for col in current Module do
{ if col == cCurr) break // Current column number
ColNum++
}
if (ColNum > 0)
cPrev = column(mCurr, ColNum-1)
else cPrev = null
if (ColNum < NumCols-1)
cNext = column(mCurr, ColNum+1)
else cNext = null
// cPrev and cNext are adjacent columns to the currently selected one
|
Re: Columns in DXL Kind regards |